import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'
import 'antd/dist/reset.css'
import { RootStyleRegistry } from './RootStyleRegistry'
import { ConfigProvider } from 'antd'

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
  title: '开发环境配置生成器',
  description: '为您的开发环境生成配置文件',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="zh-CN" suppressHydrationWarning>
      <body className={inter.className}>
        <RootStyleRegistry>
          <ConfigProvider>
            {children}
          </ConfigProvider>
        </RootStyleRegistry>
      </body>
    </html>
  )
} 